package br.edu.fasete.javaroad.model;

import java.util.ArrayList;
import java.util.List;

public class ClassDescriptor extends EntityDescriptor{	
	
	private boolean persistent;
	private boolean isAbstract;
	private List<InterfaceDescriptor> interfaces;
	
	public ClassDescriptor(String nome, boolean dao, boolean persistent) {
		super(nome, dao);
		this.persistent = persistent;
		this.interfaces = new ArrayList<InterfaceDescriptor>(5);
	}
	
	public void setAbstract(boolean a) {
		isAbstract = a;
	}
	
	public boolean isAbstract() {
		return isAbstract;
	}
	
	public boolean isPersistent() {
		return persistent;
	}
	
	public void setPersistent(boolean p) {
		persistent = p;
	}
	
	public List<InterfaceDescriptor> getInterfaces() {
		return interfaces;
	}

	public void setInterfaces(List<InterfaceDescriptor> interfaces) {
		this.interfaces = interfaces;
	}	
}
